package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * ForumShareLinkEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "forum_share_link", schema = "yzj_forum")
public class ForumShareLinkEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /** */
  @TableField("id")
  private String id;

  /** 收藏数量 */
  @TableField("collect")
  private Integer collect;

  /** 是否可用 */
  @TableField("delete")
  private Boolean delete;

  /** 链接封面 */
  @TableField("linkSrc")
  private String linkSrc;

  /** 链接标签 */
  @TableField("linkTags")
  private String linkTags;

  /** 链接地址 */
  @TableField("linkUrl")
  private String linkUrl;

  /** 链接名称 */
  @TableField("linkName")
  private String linkName;

  /** 链接描述 */
  @TableField("linkDesc")
  private String linkDesc;

  /** 分享链接的用户 */
  @TableField("nickname")
  private String nickname;

  @TableField("createTime")
  private Date createTime;

  @Override
  public final Class entityClass() {
    return ForumShareLinkEntity.class;
  }
}
